package com.telit.firecommand.model.xj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;
import java.util.Set;


/**
 * 续简设备保存Request
 *
 * @author yuezhuang
 * @date 2022-11-29
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "SaveXjMemRequest", description = "续简设备保存Request")
public class SaveXjMemRequest implements Serializable {

    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value = "ID", required = true)
    private Long id;

    @NotNull(message = "叙简 成员姓名 不能为空")
    @ApiModelProperty(value = "叙简 成员姓名")
    private String xjMemName;

    @NotNull(message = "叙简 号码1 不能为空")
    @ApiModelProperty(value = "叙简 号码1")
    private String xjMemTel;

    @ApiModelProperty(value = "叙简 号码2")
    private String xjMemTel2;

    @ApiModelProperty(value = "叙简 手机号码")
    private String xjMemMobile;

    @ApiModelProperty(value = "叙简 排序")
    private Integer xjSortIndex;

    @NotNull(message = "统一平台 部门id 不能为空")
    @ApiModelProperty(value = "统一平台 部门id")
    private Long ptDeptId;

    @ApiModelProperty(value = "统一平台 部门名称")
    private String ptDeptName;

    @ApiModelProperty(value = "经度")
    private String longitude;

    @ApiModelProperty(value = "纬度")
    private String latitude;

    @ApiModelProperty(value = "续简ID")
    private String xjId;

    @ApiModelProperty(value = "所属区域编码")
    private String areaCode;

    @NotNull(message = "分类 不能为空")
    @ApiModelProperty(value = "分类集合")
    private List<Long> categoryIds;

    /**
     * 功能（type）集合 1-视频 2-音频
     *
     * @see com.telit.firecommand.entity.XjCategory#type
     */
    @NotNull(message = "功能 不能为空")
    @ApiModelProperty(value = "功能集合 1-视频 2-音频")
    private Set<Integer> functionSet;

}
